package com.szgz.platform.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.szgz.platform.model.TeacherEnvironment;
import com.szgz.platform.model.TeacherEnvironmentUsage;

import java.util.List;

public interface TeacherEnvironmentService extends IService<TeacherEnvironment> {

	TeacherEnvironment create(TeacherEnvironment env);

	TeacherEnvironment getById(String environmentId);

	Page<TeacherEnvironment> page(long pageNum, long pageSize, String teacherId, String groupId, String type, String status);

	boolean deleteEnvironment(String environmentId);

	List<TeacherEnvironmentUsage> bindStudents(String environmentId, List<TeacherEnvironmentUsage> usages);

	List<TeacherEnvironmentUsage> listUsages(String environmentId);

	Page<TeacherEnvironmentUsage> pageUsages(String environmentId, long pageNum, long pageSize);

	TeacherEnvironmentUsage updateUsage(TeacherEnvironmentUsage usage);

	boolean deleteUsage(String usageId);

	boolean updateStatus(String environmentId, String status);
}

